/** 
 *  @file       led.h
 *  @brief      LED驱动程序
 *  @author     Z B T   
 *  @version    
 *  @date       2015-10
 */
 
#ifndef __LED_H
#define __LED_H

//#define LED_0	0x01
//#define LED_1	0x02
//#define LED_2	0x04
//#define LED_3	0x08
//#define LED_4	0x10
//#define LED_5	0x20
//#define LED_6	0x40
//#define LED_7	0x80
//#define LED_ALL 0xFF

enum LED
{
    LED_START,
    LED_0 = 0x01, LED_1 = 0x02, LED_2 = 0x04, LED_3 = 0x08,
    LED_4 = 0x10, LED_5 = 0x20, LED_6 = 0x40, LED_7 = 0x80,
    LED_ALL = 0xff,
    LED_END,
};

void led_on(enum LED led_value);
void led_off(enum LED led_value);

void led_flash(enum LED led_value, unsigned int t_ms);
void led_loop(void);

#endif